import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/batchOrder/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const audit = (row) => {
  return request({
    url: '/api/batchOrder/audit',
    method: 'post',
    data: row
  })
}

export const declarationCompanyStatisticsList = (current, size, params) => {
  return request({
    url: '/api/batchOrder/declarationCompanyStatistics',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const inboundFeeRankList = (current, size, params) => {
  return request({
    url: '/api/batchOrder/inboundFeeRank',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
export const productSummaryByCategoryList = (current, size, params) => {
  return request({
    url: '/api/batchOrder/productSummaryByCategoryList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
export const CityInventoryComparisonList = (current, size, params) => {
  return request({
    url: '/api/batchOrder/CityInventoryComparisonList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const exportDeclarationCompany =(params,month) =>  {
  return request({
    url:'/api/batchOrder/exportDeclarationCompany',
    method:'post',
    responseType:'blob',
    params:params,month,
    timeout: 30000,
  })
}

export const exportInboundFee =(params,month) =>  {
  return request({
    url:'/api/batchOrder/exportInboundFee',
    method:'post',
    responseType:'blob',
    params:params,month,
    timeout: 30000,
  })
}

export const exportProductSummaryByCategory =(params,month) =>  {
  return request({
    url:'/api/batchOrder/exportProductSummaryByCategory',
    method:'post',
    responseType:'blob',
    params:params,month,
    timeout: 30000,
  })
}

export const exportCityInventoryComparison =(params,month) =>  {
  return request({
    url:'/api/batchOrder/exportCityInventoryComparison',
    method:'post',
    responseType:'blob',
    params:params,month,
    timeout: 30000,
  })
}
